import request from '@/utils/request'

/**
 * Scroll Message
 * @param {*} data
 * @returns
 */
export function getMsgList(data) {
  return request({
    url: '/api/msgList',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  })
}

/**
 * Download rewards
 * @param data
 * @returns {*}
 */
export function downloadBonus(data) {
  return request({
    url: '/api/download/reward',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  })
}
/**
 * Mining Information
 * @param {*} data
 * @returns
 */
export function miningInfo(data) {
  return request({
    url: '/register/miningInfo',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  })
}

/**
 * Get shared QR code
 * @param {*} data
 * @returns
 */
export function getQRcode(data) {
  return request({
    url: '/api/getshare',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  })
}

/**
 * mining
 * @param {*} data
 * @returns
 */
export function startMining(data) {
  return request({
    url: '/register/startMining',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  })
}

/**
 * Join community
 * @param {*} data
 * @returns
 */
export function getServers(data) {
  return request({
    url: '/api/getServers',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  })
}

/**
 * get Banner
 * @param {Object} data
 */
export function getBanner(data) {
	return request({
		url: '/api/getBanner',
		method: 'post',
		data
	})
}
/**
 * 
 * @param {Object} data
 */
export function getTyp(data) {
	return request({
		url: '/api/getimg/typ',
		method: 'post',
		data
	})
}
/**
 * ChatAi Open Lucky
 * @param {Object} data
 */
export function queryOpenLuckyList(data) {
	return request({
		url: '/api/queryOpenLuckyList',
		method: 'post',
		data
	})
}

/**
 * ChatAi Box History
 * @param {Object} data
 */
export function getOpenBoxList(data) {
	return request({
		url: '/api/getOpenBoxList',
		method: 'post',
		data
	})
}

/**
 * open Box
 * @param {Object} data
 */
export function openBox(data) {
	return request({
		url: '/api/openBox',
		method: 'post',
		data
	})
}

/**
 * to Blind Box
 * @param {Object} data
 */
export function toBlindBox(data) {
	return request({
		url: '/api/toBlindBox',
		method: 'post',
		data
	})
}

/**
 * get Notic Detail
 * @param {Object} data
 */
export function getNotic(data) {
	return request({
		url: '/api/getNotic',
		method: 'post',
		data
	})
}

/**
 * My Team
 * @param {Object} data
 */
export function queyMyTeam(data) {
	return request({
		url: '/api/queyMyTeam',
		method: 'post',
		data
	})
}